Skip to content

fix(inkless): bound error-message size on fetch/commit failure paths [KC-410] - #741

Merged
jeqo merged 1 commit into
mainfrom
jeqo/fix-bound-msgs
Aug 13, 2026
Merged

fix(inkless): bound error-message size on fetch/commit failure paths [KC-410]#741
jeqo merged 1 commit into
mainfrom
jeqo/fix-bound-msgs

Conversation

@jeqo

@jeqo jeqo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Two error paths interpolated an unbounded value into the message, the same class of bug as the S3 bulk-delete fix (#733):

  • FetchCompleter: the catch-all wrapped the failure with the full fetchInfos.keySet(), which spans every client-requested partition (up to thousands). Report only the partition count.
  • FileCommitter: logged the whole ClosedFile record, whose toString dumps every aggregated produce request and commit batch. Log a bounded summary (start, request count, batch count, bytes).

@jeqo
jeqo force-pushed the jeqo/fix-bound-msgs branch from 805a1d0 to 115fbeb Compare August 11, 2026 22:08
@jeqo
jeqo force-pushed the jeqo/file-delete branch from dd0373e to 894fa9c Compare August 11, 2026 22:17
@jeqo
jeqo force-pushed the jeqo/fix-bound-msgs branch from 115fbeb to f119ddb Compare August 11, 2026 22:18
@jeqo
jeqo changed the base branch from jeqo/file-delete to main August 11, 2026 22:18
@jeqo jeqo changed the title fix(inkless): bound unbounded values interpolated into error messages and logs fix(inkless): bound error-message size on fetch/commit failure paths Aug 12, 2026
Two error paths interpolated an unbounded value into the message, the same
class of bug as the S3 bulk-delete fix (#733):

- FetchCompleter: the catch-all wrapped the failure with the full
  fetchInfos.keySet(), which spans every client-requested partition
  (up to thousands). Report only the partition count.
- FileCommitter: logged the whole ClosedFile record, whose toString dumps
  every aggregated produce request and commit batch. Log a bounded summary
  (start, request count, batch count, bytes).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jeqo
jeqo force-pushed the jeqo/fix-bound-msgs branch from f119ddb to 8b3e6d5 Compare August 12, 2026 16:05
@jeqo jeqo changed the title fix(inkless): bound error-message size on fetch/commit failure paths fix(inkless): bound error-message size on fetch/commit failure paths [KC-410] Aug 13, 2026
@jeqo
jeqo marked this pull request as ready for review August 13, 2026 09:08
@jeqo
jeqo merged commit bf4c0d3 into main Aug 13, 2026
9 checks passed
@jeqo
jeqo deleted the jeqo/fix-bound-msgs branch August 13, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants